home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
FIN.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
45 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_FIn( cFieldName, cFieldVal, cPassword ) --> NIL
PARAMETERS:
cFieldName: Name of database field to write data
cFieldVal : Data to be written to database field
cPassword : Encryption Password (Optional)
SHORT:
Write data to database field, optionally with encryption.
DESCRIPTION:
_Fin() writes data to a database field.
If cPassword is specified, character fields are encrypted before writting.
Encrypted fields maintain both leading and trailing spaces. That is, if the
value " KIRBY " is written and a password is specified, the result
will be something to the effect of " @f&3_ ". The leading and
trailing spaces are not included in the encryption because doing so makes
breaking of the encryption much easier.
The _FOut() function will similarly restore leading and trailing spaces.
Non-Character fields are not encrypted.
NOTE:
EXAMPLE:
t = "This is a test"
_FIn('TESTFIELD',t,'PASSWORD')
******************************************************************************/